import { GET_USER_INFO_SUCCESS } from '../consts/index.js';
import API from '../api/index.js';

export function getUserInfo() {
  return {
    type: GET_USER_INFO_SUCCESS,
    promise: () => API.getUserInfo(),
    afterSuccess: () => {
      console.log('afterSuccess');
    }
  };
}